package Util;

import javax.swing.JComponent;
import javax.swing.JOptionPane;

public class Contexto {

	public static void displayFeedbackMessage(JComponent component, String feedbackMessage) {
		JOptionPane.showMessageDialog(component.getParent(),
			    feedbackMessage,
			    "Info",
			    JOptionPane.INFORMATION_MESSAGE);
	}
	
	public static void displayErrorMessage(JComponent component, String errorMessage) {
		JOptionPane.showMessageDialog(component.getParent(),
			    errorMessage,
			    "Error",
			    JOptionPane.ERROR_MESSAGE);
	}
	
}
